

<%@ page import="sedh.project.User" %>
<html>
    <head>
        <g:render template="/header"/>
    </head>
    <body>
    <g:render template="/informationBar"/>
    
    <g:render template="/menu"/>
        
        <div class="body">
            <h1>Usuario</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Nome:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:userInstance, field:'nome')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Municipio:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:userInstance, field:'municipio')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Papel:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:userInstance, field:'papel')}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Telefone:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:userInstance, field:'telefone')}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Email:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:userInstance, field:'email')}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Rg:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:userInstance, field:'rg')}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${userInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Voce tem certeza?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
